import request from '../utils/request'

/**
 *
 * @param method
 * @param path
 * @param data
 * @returns {AxiosPromise<any>}
 */
export async function doRequest(path, data, method = 'post') {
  return request({
    url: path,
    method: method,
    data: data,
  })
}
